<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-cloak]{
            display:none;
        }
    </style>
</head>
<body>
    <div id="div"> 
        <p v-ones></p>
        <input type="text" v-model="val">{{val}}
        <h1 id="1" v-cloak>{{a}}</h1>
        <button @click="add">add </button>
        <button @click="minus">minus </button>
        <p v-if="false">false</p>
        <p v-if="true">true</p>
        <ul>
            <li v-for="item in arr">{{item}}</li>
        </ul>
        <table>
            <tr v-for="i in arr">
                <td v-for="j in i">
                    {{i}} X {{j}} = {{i*j}}
                </td>
            </tr>
        </table>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        //alert(Vue);
        new Vue({
            el:'#div',
            data:{a: 0,
            arr:[1,2,3,4,5,6,7,8,9],
                val: "you can see me!"},
            methods: {
                add(){this.a++},
                minus(){this.a--}
            }
        })
    </script>
</body>
</html>